package com.aya.adapter;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
@Scope("prototype")
public class AnimalAdapter {
    private BaseAnimal baseAnimal;

    public AnimalAdapter(BaseAnimal baseAnimal){

        this.baseAnimal = baseAnimal;
    }
    public void sayHello(){
        System.out.println("AnimalAdapter hello");
        baseAnimal.sayHello();
    }
}
